package com.lulin.common.exception;

import lombok.Data;

/**
 * @author lulin
 * @date 2022/12/27 10:34
 */
@Data
public class NoStockExecption extends RuntimeException {

    private Long skuId;

    public NoStockExecption(Long skuId) {
        super("当前商品[ " + skuId + " ] 没有库存了");
        this.skuId = skuId;
    }
}
